﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Phone
{
    internal class Program
    {
        static void Main(string[] args)
        {
            Mobilephone mobilephone1 = new ConcreteMobilephone();
            Mobilephone mobilephone2 = new ConcreteMobilephone();
            Decorator apple = new Apple(mobilephone1);
            Decorator mi = new Mi(mobilephone2);
            Console.WriteLine("-------------apple-------------");
            apple.Operation(0);
            Console.WriteLine("-------------mi-------------");
            mi.Operation(1);
            Console.ReadKey();
        }
    }
}
